package com.swg.service;

import com.swg.common.ServerResponse;
import com.swg.pojo.Category;

import java.util.List;

/**
 * @Author 【swg】.
 * @Date 2018/1/3 16:45
 * @DESC
 * @CONTACT 317758022@qq.com
 */
public interface CategoryService {
    ServerResponse addCategory(String categoryName, Integer parentId);
    ServerResponse updateCategoryName(Integer categoryId,String categoryName);
    ServerResponse<List<Category>> getChildrenParallelCategory(Integer categoryId);
    ServerResponse<List<Integer>> selectCategoryAndDeepChildrenById(Integer categoryId);
}
